<?php

$feed = new SimpleXMLElement('http://code-haiku.com/portfolio-zen-news?format=feed&type=rss', 0, true);

JToolbarHelper::title('Portfolio Zen', 'zen');

?>
<style type="text/css">

  .icon-48-zen {
      background: url(components/com_portfoliozen/images/icon-48.png) 0 0 no-repeat;
  }

  #pzWrapper {
      width: 100%;
  }

  #faq strong {
      color: green;
  }

  #faq li, #faq p{
      font-size: 13px;
      line-height: 1.5em;
  }

  #faq, .pzRight {
      display: block;
      width: 68%;
      padding: 0 2% 0 0;
      float: left;
  }

  .pzRight {
      width: 25%;
      padding: 0 2% 1% 2%; 
      border: 1px solid #ccc;
      -moz-border-radius: 5px;
      border-radius: 5px;
      margin-bottom: 20px;
  }

  .pzRight p {
      margin: 0;
      padding: 2px 0;
  }

  #version {
      font-size: .9em;
      text-align: center;
  }

</style>

<div id="pzWrapper">

  <div id="faq">
    <h2>FAQ</h2>
    <ul>
      <li>
      <strong>What's going on here?</strong>  Portfolio Zen has no component controls.  Instead, this area has information about setting Portfolio Zen up.
      </li>
      <li>
      <strong>What steps do I take to set Portfolio Zen up?</strong>
      <ol>
	<li>Create a Joomla section to contain your portfolio.  For example: "Photography".</li>
	<li>Create a Joomla category for each category of your work. For example: "Still Life, Long Exposure, Nature."</li>
	<li>In the article manager, create an article for each slide that you want displayed and assign it to the relevant category.  Each article should have an image and a paragraph describing that images relevance to your portfolio.  For example, you might create an article in the category "Still Life", with an image of a bowl of fruit, and beneath it have a paragraph that says, "I took this on my kitchen table with a SuperCamera 500."</li>
	<li>Once you have created all your articles create a Portfolio Zen menu item. In the component parameters, set which section holds your portfolio.  In this example, it's "Photography."</li>
      </ol>
      </li>
      <li>
      <strong>Reading scares me. Are there any pictures showing how to do it?</strong>  Check out the <a href="http://code-haiku.com/portfoliozen/documentation">Code Haiku website</a> for more detailed documentation on how to set up Portfolio Zen(and yes, there will be pictures ;) .)
      </li>
      <li><strong>What's the best way to get help with Portfolio Zen?</strong> Read the documentation and check and make sure that your server meets the requirements of Portfolio Zen.  <em>Do not attempt to contact me, the author of Portfolio Zen, asking for help</em> because no support is provided and you will not receive a response(regardless of your situation, your praise, your promises, or your threats.)</li>
      <li><strong>Why isn't support provided for Portfolio Zen?</strong>  Money.  Web development is my occupation and while I want to give back as much as possible to the open source community by providing extensions such as this one, I still have to pay my bills.  My business is designed around building software, not providing support, and because of this <em>support is an on-call service that prevents me from effectively doing my job and making a living.</em></li>
      <li><strong>How do I report a bug?</strong>  Please submit it through the <a href="http://code-haiku.com/portfoliozen/bug">Code Haiku website</a> and I will correct it at my earliest availability.</li>
      <li><strong>How do I request a feature?</strong>  Please submit feature requests through the <a href="http://code-haiku.com/portfoliozen/feature">Code Haiku website</a> and I will take them into consideration.  I want to build what is useful to the greatest number of people, but need to balance each request against what is essential to the project&mdash; providing a simple and effective portfolio.</li>
    </ul>

    <div id="version"><p>This version of Portfolio Zen is: 2.0.3</p></div>

  </div>

  <div class="pzRight">
    <h2>Portfolio Zen News</h2>
  <ul>  

  <?php  $i = 1;
	  if(count($feed->channel->item) >= 1):
  foreach($feed->channel->item as $item): ?>

  <li>
    <a href="<?php echo $item->guid ?>"><?php echo $item->title ?></a><br />
    <?php echo substr($item->description, 0,300) ?>
  </li>

  <?php  $i++; if($i > 5) break;  ?>

  <?php endforeach; endif;?>

  </ul>

  </div>
  
</div>